package com.ht.managermentserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author czy
 * @since 2020-05-30
 */
@SuppressWarnings("SpellCheckingInspection")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "BiDatatable对象", description = "")
public class BiDatatable extends BaseEntity implements Serializable {

  public static final String AUTOID = "autoId";
  public static final String DATASOURCEID = "datasourceId";
  public static final String TABLENAME = "tableName";
  public static final String TABLENAME_EXTEND = "tablename_extend";
  public static final String TABLETYPE = "tableType";
  public static final String SQL = "sql";
  public static final String MODIFYID = "modifyId";
  public static final String MODIFYDATE = "modifyDate";
  private static final long serialVersionUID = -7503208071249178210L;

  @TableId(value = "autoId", type = IdType.AUTO)
  private Integer autoId;

  @TableField("datasourceId")
  private Integer datasourceId;

  @TableField("tableName")
  private String tableName;

  private String tablenameExtend;

  @TableField("tableType")
  private Integer tableType;

  @TableField("`sql`")
  private String sql;

  @TableField("modifyId")
  private Integer modifyId;

  @TableField("modifyDate")
  private LocalDateTime modifyDate;
}
